#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;
  string ans;
  int i = 0;
  while (i < s.size()) {
    string ab = s.substr(i, 2); // 求i位置开始，长度为2的子串
    if (ab == "00") {
      ans += "<";
      i += 2;
    } else if (ab == "11") {
      ans += ">";
      i += 2;
    } else {
      string abc = s.substr(i, 3);
      if (abc == "010") {
        ans += "[";
      } else if (abc == "101") {
        ans += "]";
      } else if (abc == "011") {
        ans += "+";
      } else if (abc == "100") {
        ans += "-";
      }
      i += 3;
    }
  }
  cout << ans;
  return 0;
}